import request from '@/utils/request'

const baseUrl = '/spoken/lessonNum'

// 查询课节列表
export function listLessonNum(query) {
  return request({
    url: baseUrl +'/list',
    method: 'get',
    params: query
  })
}

// 查询课节详细
export function getLessonNum(cTagId) {
  return request({
    url: baseUrl + '/' + cTagId,
    method: 'get'
  })
}

// 新增课节
export function addLessonNum(data) {
  return request({
    url: baseUrl,
    method: 'post',
    data: data
  })
}

// 修改课节
export function updateLessonNum(data) {
  return request({
    url: baseUrl,
    method: 'put',
    data: data
  })
}

// 删除课节
export function deleteLessonNum(cTagId) {
  return request({
    url: baseUrl + '/' + cTagId,
    method: 'delete',
  })
}
